<?php
namespace User\Controller;
use Common\Controller\AdminBaseController;

class DepartController extends AdminBaseController {

    public function index() {
    	$nav_data=D('AdminNav')->getTreeData('level','order_number,id');
		$assign=array(
			'data'=>$nav_data
			);
			
		$this->assign('data',$assign);
    	$this->display();
    }
    public function tree() {
    	$nav_data=D('AdminNav')->getTreeData('level','order_number,id');
		$assign=array(
			'data'=>$nav_data
			);
			dump($assign);die;
		$this->assign('data',$assign);
    	$this->display();
    }
}
?>